package com.longsunhd.yum.buffalo.bean;

import java.util.List;

/**
 * 作者：黄宣淇
 * 时间：2021/5/10 0010
 * 如何代码没有备注，一个月后，只有你和上帝知道--鲁迅
 */
public class GetMedicationFieldBean {
/*
* 字段名（field），
* 类型（type），
* 名称（name），
* 提示文字（placeholder），
* 备选项（option），
* 值（value），
* 格式化（format），
* 长度上限（length），
* 数量上限（count），
* 是否多选（multiple），
* 是否禁用（disabled），
* 是否必填（require），
* 数据地址（url），请求方法（method），显示条件（show）
* */
    /**
     * code : 200
     * data : {"title":"用药记录","form":[{"name":"ID","field":"id","type":"hidden","value":null,"require":false},{"name":"牛只","field":"buffalo_id","type":"hidden","value":null,"require":true},{"name":"药品","field":"drug_id","type":"select","value":null,"require":true,"url":"https://wlwadmin.longsunhd.com/api/manage/drug-option"},{"name":"病因","field":"pathogeny","type":"text","value":null},{"name":"治疗方法","field":"method","type":"radio","value":0,"option":[{"value":0,"name":"口服"},{"value":1,"name":"外用"},{"value":2,"name":"注射"}],"require":false},{"name":"剂量","field":"dosage","type":"text","value":null,"require":false},{"name":"用药时间","field":"use_date","type":"datetime","value":null,"require":false},{"name":"状态","field":"status","type":"radio","value":0,"option":[{"value":0,"name":"正常"},{"value":1,"name":"异常"}],"require":false},{"name":"备注","field":"remark","type":"textarea","value":"","require":false}]}
     * msg : 成功
     */

    private int code;
    private DataBean data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean {
        /**
         * title : 用药记录
         * form : [{"name":"ID","field":"id","type":"hidden","value":null,"require":false},{"name":"牛只","field":"buffalo_id","type":"hidden","value":null,"require":true},{"name":"药品","field":"drug_id","type":"select","value":null,"require":true,"url":"https://wlwadmin.longsunhd.com/api/manage/drug-option"},{"name":"病因","field":"pathogeny","type":"text","value":null},{"name":"治疗方法","field":"method","type":"radio","value":0,"option":[{"value":0,"name":"口服"},{"value":1,"name":"外用"},{"value":2,"name":"注射"}],"require":false},{"name":"剂量","field":"dosage","type":"text","value":null,"require":false},{"name":"用药时间","field":"use_date","type":"datetime","value":null,"require":false},{"name":"状态","field":"status","type":"radio","value":0,"option":[{"value":0,"name":"正常"},{"value":1,"name":"异常"}],"require":false},{"name":"备注","field":"remark","type":"textarea","value":"","require":false}]
         */

        private String title;
        private List<FormBean> form;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public List<FormBean> getForm() {
            return form;
        }

        public void setForm(List<FormBean> form) {
            this.form = form;
        }


        public static class FormBean extends FieldFormationBean {

        }

    }
}
